package com.cskaoyan.service;

import com.cskaoyan.bean.TopicDetailVO;
import com.cskaoyan.bean.WxRelated;
import com.cskaoyan.bean.WxTopicList;
import com.cskaoyan.bean.basebean.BaseParam;
import com.cskaoyan.bean.basebean.BasePageData;
import com.cskaoyan.bean.Topic;
import com.cskaoyan.exception.TopicException;

/**
 * @author lxy
 * @create 2021-10-18 22:12
 */
public interface TopicService {
    BasePageData query(String title, String subtitle, BaseParam baseParam);

    void deleteTopic(Topic topic) throws TopicException;

    void createTopic(Topic topic) throws TopicException;

    void updateTopic(Topic topic) throws TopicException;

    Topic getReadTopic(Integer id) throws TopicException;

    BasePageData<WxTopicList> listTopic(Integer page, Integer limit);

    TopicDetailVO detail(Integer id);

    BasePageData<WxRelated> related(Integer id);
}
